import 'dart:math' as math;

import 'package:flutter/material.dart';

const mobileMaxWidth = 600;

bool isDisplayMobile(BuildContext context) {
  final screenWidth = MediaQuery.sizeOf(context).width;
  final devicePixelRatio = MediaQuery.devicePixelRatioOf(context);
  return screenWidth < mobileMaxWidth * devicePixelRatio;
}

double getRotateAngle(double angle) {
  return angle * math.pi / 180;
}
